package com.tengjunjie.qianqianaccountbook.qianqianaccountbook.enums;

import lombok.Getter;

/**
 * Created by tengjunjie on 2017/12/3.
 * 返回值，参数key以后用10，或者11递增表示。
 */
@Getter
public enum ResultEnum {
    PARAM_ERROR(1, "参数不正确"),
    SAVE_ERROR(10, "插入数据库报错")
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
